package com.mobilefish.webservice.countries;

public class CountriesWebserviceMobilefishComPortProxy implements com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComPort {
  private String _endpoint = null;
  private com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComPort countriesWebserviceMobilefishComPort = null;
  
  public CountriesWebserviceMobilefishComPortProxy() {
    _initCountriesWebserviceMobilefishComPortProxy();
  }
  
  public CountriesWebserviceMobilefishComPortProxy(String endpoint) {
    _endpoint = endpoint;
    _initCountriesWebserviceMobilefishComPortProxy();
  }
  
  private void _initCountriesWebserviceMobilefishComPortProxy() {
    try {
      countriesWebserviceMobilefishComPort = (new com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComServiceLocator()).getCountriesWebserviceMobilefishComPort();
      if (countriesWebserviceMobilefishComPort != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)countriesWebserviceMobilefishComPort)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)countriesWebserviceMobilefishComPort)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (countriesWebserviceMobilefishComPort != null)
      ((javax.xml.rpc.Stub)countriesWebserviceMobilefishComPort)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComPort getCountriesWebserviceMobilefishComPort() {
    if (countriesWebserviceMobilefishComPort == null)
      _initCountriesWebserviceMobilefishComPortProxy();
    return countriesWebserviceMobilefishComPort;
  }
  
  public com.mobilefish.webservice.countries.CountryData countryInfoByIana(java.lang.String ianacode) throws java.rmi.RemoteException{
    if (countriesWebserviceMobilefishComPort == null)
      _initCountriesWebserviceMobilefishComPortProxy();
    return countriesWebserviceMobilefishComPort.countryInfoByIana(ianacode);
  }
  
  public com.mobilefish.webservice.countries.RegionsData[] regionsInfoByIana(java.lang.String ianacode) throws java.rmi.RemoteException{
    if (countriesWebserviceMobilefishComPort == null)
      _initCountriesWebserviceMobilefishComPortProxy();
    return countriesWebserviceMobilefishComPort.regionsInfoByIana(ianacode);
  }
  
  public com.mobilefish.webservice.countries.IANAData[] getIANAInfo() throws java.rmi.RemoteException{
    if (countriesWebserviceMobilefishComPort == null)
      _initCountriesWebserviceMobilefishComPortProxy();
    return countriesWebserviceMobilefishComPort.getIANAInfo();
  }
  
  
}